@echo off
chcp 65001 >nul
echo 启动qiankun微前端项目...

echo.
echo 1. 启动主应用 (端口: 5173)...
start "主应用" cmd /k "cd main-app && npm run dev"

echo.
echo 2. 等待3秒后启动React子应用...
timeout /t 3 /nobreak >nul
start "React子应用" cmd /k "cd react-app && npm run dev"

echo.
echo 3. 等待3秒后启动Vue子应用...
timeout /t 3 /nobreak >nul
start "Vue子应用" cmd /k "cd vue-app && npm run dev"

echo.
echo 所有应用启动完成！
echo 主应用: http://localhost:5173
echo React子应用: http://localhost:3000
echo Vue子应用: http://localhost:3001
echo.
echo 请在浏览器中访问主应用地址
pause 